﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Microhard.Protal.Validators;

namespace Microhard.Protal.Models
{
    [FluentValidation.Attributes.Validator(typeof(ArticleModelValidator))]
    public class ArticleModel : BasePermissionModel
    {
        [ModelPKID]
        public Guid ArticleID { set; get; }
        public string ArticleContent { set; get; }
        public string Title { set; get; }
        public string Description { set; get; }
        public bool IsOnIndex { set; get; }
        public DateTime CreateTime { set; get; }
        public Guid ArticleType { set; get; }
        [ModelReadTxtFromoCache(IDFieldName = "ArticleType")]
        public string ArticleTypeDisplay { set; get; }
        public string VideoUrl { set; get; }
    }
}
